<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
    <title>商品录入</title>
    <form th:action="@{/good/addGood}" method="post">
        <tr>
            <td> 商品名称：</td>
            <td><input type="text" name="goodname" class="form-inline"></td>
        </tr>
        <tr>
            <td> 商品价格：</td>
            <td><input type="text" name="goodprice" class="form-inline">/<input type="text" name="goodunit"
                                                                                class="form-inline"></td>
        </tr>
        <tr>
            <td> 分类：</td>
            <td>
                <select name="type.typeid">
                    <option value="-1">请选择</option>
                    <option
                            th:each="t:${typelist}"
                            th:value="${t.typeid}" th:text="${t.typename}">
                    </option>
                </select>
            </td>
        </tr>
        <tr>
            <td><input type="submit" value="提交" class="btn btn-success"></td>
        </tr>
    </form>
</table>
</body>
</html>